//
//  HomePageBigCardVC.swift
//  首页 - 大卡位
//
//  Created by 千策万划-mini on 2025/4/30.
//

import Foundation

class HomePageBigCardVC: BaseTableVC {
    
    var blockRefreshHome:(() -> Void)?
    
    // MARK: - lazy
    lazy var viewContent: BigCardContentView = {
        let result = BigCardContentView()
        return result
    }()
    
    // MARK: - viewDidLoad
    override func viewDidLoad() {
        super.viewDidLoad()
        
        configUI()
        addRefresh()
    }
    
    override func addRefresh() {
        addRefreshHeader()
    }
    
    func configUI() {
        view.backgroundColor = .clear
        viewBg.backgroundColor = .clear
        tableView.backgroundColor = .clear
        tableView.tableHeaderView = viewContent
    }
    
    
    // MARK: - request
    override func requestList() {
        endRefreshing()
        if let block = blockRefreshHome {
            block()
        }
    }
}
